/* eslint-disable*/

export function StoreFuncTest() {
    var store = {
        id:1,
        cache:{},
        add:function (fn) {
            if(!fn.id){
                fn.id = store.id++;
                store.cache[fn.id] = fn;
                return true;
            }
            return false;
        }
    };
    function tmp () {

    };
    console.log(store.add(tmp));
    console.log(store.add(tmp));

}
